package com.our.model;

import java.util.Date;

public class News {
    private Integer newsId;

    private RepResource res;

    private String newsTitle;

    private Date createTime;

    private String creator;

    private Date updateTime;

    private String updator;

    private String remark;

    private NewsType type;
    
    private String newsContext;

    public Integer getNewsId() {
        return newsId;
    }

    public void setNewsId(Integer newsId) {
        this.newsId = newsId;
    }

    public RepResource getRes() {
		return res;
	}

	public void setRes(RepResource res) {
		this.res = res;
	}

	public NewsType getType() {
		return type;
	}

	public void setType(NewsType type) {
		this.type = type;
	}

	public String getNewsTitle() {
        return newsTitle;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle == null ? null : newsTitle.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdator() {
        return updator;
    }

    public void setUpdator(String updator) {
        this.updator = updator;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

	public String getNewsContext() {
		return newsContext;
	}

	public void setNewsContext(String newsContext) {
		this.newsContext = newsContext == null ? null : newsContext.trim();;
	}

	@Override
	public String toString() {
		return "News [newsId=" + newsId + ", res=" + res + ", newsTitle=" + newsTitle + ", createTime=" + createTime
				+ ", creator=" + creator + ", updateTime=" + updateTime + ", updator=" + updator + ", remark=" + remark
				+ ", type=" + type + ", newsContext=" + newsContext + "]";
	}
	
    
}